package com.expect.admin.busmanagement.data.dao;

import java.util.List;

import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import com.expect.admin.busmanagement.data.dataobject.Bus;

public interface BusRepository extends JpaRepository<Bus, String> {
	
	/**
	 * 车牌号
	 */
	public Bus findById(String busId);
	
	/**
	 * 驾驶员
	 */
	public Bus findByName(String userName);//用String还是User？
	
	public List<Bus> findAll(Specification<Bus> spec);
	
	

}
